package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_ProductBqSpZj", catalog="Id")
public class TpProductBqSpZj extends BaseEntity<TpProductBqSpZj> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Pcode", nameJava="pcode", typeDataBase="varchar")
	private String pcode;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="decimal")
	private BigDecimal num;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Bprice", nameJava="bprice", typeDataBase="decimal")
	private BigDecimal bprice;
	@YsField(nameDataBase="LinkIn", nameJava="linkIn", typeDataBase="varchar")
	private String linkIn;
	@YsField(nameDataBase="LinkInMark", nameJava="linkInMark", typeDataBase="varchar")
	private String linkInMark;
	@YsField(nameDataBase="CurrentNo", nameJava="currentNo", typeDataBase="int")
	private Integer currentNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpProductBqSpZj setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TpProductBqSpZj setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getPcode() {
		return pcode;
	}
	public TpProductBqSpZj setPcode(String pcode) {
		this.pcode = pcode;
		return this;
	}
	public String getName() {
		return name;
	}
	public TpProductBqSpZj setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpProductBqSpZj setCode(String code) {
		this.code = code;
		return this;
	}
	public BigDecimal getNum() {
		return num;
	}
	public TpProductBqSpZj setNum(BigDecimal num) {
		this.num = num;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TpProductBqSpZj setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public BigDecimal getBprice() {
		return bprice;
	}
	public TpProductBqSpZj setBprice(BigDecimal bprice) {
		this.bprice = bprice;
		return this;
	}
	public String getLinkIn() {
		return linkIn;
	}
	public TpProductBqSpZj setLinkIn(String linkIn) {
		this.linkIn = linkIn;
		return this;
	}
	public String getLinkInMark() {
		return linkInMark;
	}
	public TpProductBqSpZj setLinkInMark(String linkInMark) {
		this.linkInMark = linkInMark;
		return this;
	}
	public Integer getCurrentNo() {
		return currentNo;
	}
	public TpProductBqSpZj setCurrentNo(Integer currentNo) {
		this.currentNo = currentNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpProductBqSpZj setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpProductBqSpZj setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpProductBqSpZj setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpProductBqSpZj tpProductBqSpZj(
		Long pid,
		String pcode,
		String name,
		String code,
		BigDecimal num,
		String remark,
		BigDecimal bprice,
		String linkIn,
		String linkInMark,
		Integer currentNo,
		Integer status
			) {
		TpProductBqSpZj entity = new TpProductBqSpZj();
		entity.setPid(pid);
		entity.setPcode(pcode);
		entity.setName(name);
		entity.setCode(code);
		entity.setNum(num);
		entity.setRemark(remark);
		entity.setBprice(bprice);
		entity.setLinkIn(linkIn);
		entity.setLinkInMark(linkInMark);
		entity.setCurrentNo(currentNo);
		entity.setStatus(status);
		return entity;
	}
}